﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>开发文档-列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jstree/jquery.jstree.js"></script>
<script src="js/jstree/jquery.hotkeys.js"></script>
<script type="text/javascript">
$(function () {
	$('#tree').load('tree.xml',function(){
		$("#tree").jstree({			
			"types" : {
				"types" : {
					"根目录" : {
						"icon" : { 
							"image" : "js/jstree/drive.png" 
						}
					},
					"文章" : {
						"icon" : { 
							"image" : "js/jstree/file.png" 
						}
					},
					"章节" : {
						"icon" : { 
							"image" : "js/jstree/chapter.png" 
						}
					}
				}
			},		
			"core" : { "initially_open" : [ "root" ] },
			"plugins" : ["themes","html_data","ui","crrm","hotkeys","types","themeroller"]
		})
		.bind("select_node.jstree", function (event, data) {
			if(typeof(data.rslt.obj.attr("url")) != "undefined")
				parent.doc.location.href = "doc/" + data.rslt.obj.attr("url");			
	    });		
	});	
});


</script>
</head>
<body style="background-color:FFFFEE;">
	<div id="tree" style="dispkay:none;"></div>
</body>
</html>
